#ifndef GLOBAL_HPP
#define GLOBAL_HPP

#define FAN_PWM_PIN 18
#define FAN_TEMP_PIN 34
#define TANK_TEMP_PIN 33

#define TEMP_VALID_MIN -8
#define TEMP_VALID_MAX 150

#define DRIVE_PIN_0_PWM_CHNL 0
#define PWM0_Res 5
//#define PWM0_Freq 78125 // 40000000/2^PWM0_Res
#define PWM0_Freq 25000 // 40000000/2^PWM0_Res
#define PWM0_OUTPUT_MIN 0
#define PWM0_OUTPUT_MAX 32

#define FAN_PWM_CHNL DRIVE_PIN_0_PWM_CHNL

#define ERROR_TEMP_NOT_DEFINED -300
#define ERROR_TEMP_CONVERSION_INVALID -301
#define ERROR_TEMP_READ_TIMEOUT -302

#define INPUT_BUFFER_SIZE 256
#define OUTPUT_BUFFER_SIZE 256

const char who[] = "PumpMonitor\r\n";
const char which[] = "APumpMonitor\r\n";
const char version[] = "2023.12.05.a\r\n";

#endif